import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/logins.vue'
import DetailedClose from '../views/detailedClose.vue'
// import ddd from '../views/ddd.vue'


Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'login',
        component: Login

    }, {
        path: '/', // 程序启动默认路由
        component: () =>
            import('@/components/common/Whole.vue'),
        meta: {
            title: '整体页面布局'
        },
        redirect: '/Home', // 重定向到首页
        children: [{
                path: '/HomePage',
                component: () =>
                    import('@/views/HomePage/index.vue'),
                meta: {
                    title: '数据综合统计'
                },
                redirect: '/HomePage/comprehensiveHome',
                children: [{
                    path: 'comprehensiveHome',
                    component: () =>
                        import('@/views/HomePage/comprehensiveHome/index.vue'),
                    meta: {
                        title: '数据综合统计大屏'
                    },
                }]
            },
            {
                path: '/materialQualityPage',
                component: () =>
                    import('@/views/materialQualityPage/index.vue'),
                meta: {
                    title: '材料质量管控'
                },
                redirect: '/materialQualityPage/materialQualityHome', // 该配置是若点击选择一级菜单时，默认选中并跳转到该一级菜单下的第一个二级菜单

                // redirect: '/materialQualityPage/materiaMange/entryLedger', // 该配置是若点击选择一级菜单时，默认选中并跳转到该一级菜单下的第一个二级菜单
                children: [{
                        path: '/materialQualityPage/materialQualityHome',
                        component: () =>
                            import('@/views/materialQualityPage/materialQualityHome/index.vue'),
                        meta: {
                            title: '材料质量管控大屏'
                        },
                    }, {
                        path: 'materiaMange/entryLedger',
                        component: () =>
                            import('@/views/materialQualityPage/entryLedger/index.vue'),
                        meta: {
                            title: '材料进场台账查看'
                        },
                    },
                    {
                        path: 'materiaMange/entryLedgerText',
                        component: () =>
                            import('@/views/materialQualityPage/entryLedgerText/index.vue'),
                        meta: {
                            title: '材料进场台账编辑页'
                        },
                    },
                    {
                        path: 'materiaMange/inspectionLedger',
                        component: () =>
                            import('@/views/materialQualityPage/inspectionLedger/index.vue'),
                        meta: {
                            title: '材料检测台账'
                        },
                    },

                    {
                        path: 'test1-2',
                        component: () =>
                            import('@/views/materialQualityPage/test1-2.vue'),
                        meta: {
                            title: '二级菜单1-2'
                        },
                    },
                    {
                        path: 'test1-3',
                        component: () =>
                            import('@/views/materialQualityPage/test1-3.vue'),
                        meta: {
                            title: '二级菜单1-3'
                        },
                    },
                    {
                        path: 'test1-4',
                        component: () =>
                            import('@/views/materialQualityPage/test1-4.vue'),
                        meta: {
                            title: '二级菜单1-4'
                        },
                    },
                    {
                        path: 'test1-5',
                        component: () =>
                            import('@/views/materialQualityPage/test1-5.vue'),
                        meta: {
                            title: '二级菜单1-5'
                        },
                    }
                ]
            },
            {
                path: '/test2',
                component: () =>
                    import('@/views/test2/index.vue'),
                meta: {
                    title: '一级菜单2'
                },
                redirect: '/test2/test2-1', // 该配置是若点击选择父目录时，默认选中该父目录下的子路径页面
                children: [{
                        path: 'test2-1',
                        component: () =>
                            import('@/views/test2/test2-1.vue'),
                        meta: {
                            title: '二级菜单2-1'
                        },
                    },
                    {
                        path: 'test2-2',
                        component: () =>
                            import('@/views/test2/test2-2.vue'),
                        meta: {
                            title: '二级菜单2-2'
                        },
                    },
                    {
                        path: 'test2-3',
                        component: () =>
                            import('@/views/test2/test2-3.vue'),
                        meta: {
                            title: '二级菜单2-3'
                        },
                    },
                ]
            },
            {
                path: '/test3',
                component: () =>
                    import('@/views/test3/index.vue'),
                meta: {
                    title: '一级菜单3'
                },
                redirect: '/test3/test3-1',
                children: [{
                        path: 'test3-1',
                        component: () =>
                            import('@/views/test3/test3-1.vue'),
                        meta: {
                            title: '二级菜单3-1'
                        }
                    },
                    {
                        path: 'test3-2',
                        component: () =>
                            import('@/views/test3/test3-2.vue'),
                        meta: {
                            title: '二级菜单3-2'
                        }
                    },
                ]
            },
            // {
            //     path: '/i18n', // 国际化组件
            //     component: () =>
            //         import ('@/components/common/I18n.vue'),
            //     meta: { title: '国际化' }
            // },
            // {
            //     path: '/permission', // 权限页面
            //     component: () =>
            //         import ('@/page/Permission.vue'),
            //     meta: {
            //         title: '权限测试',
            //         permission: true
            //     }
            // },
            // {
            //     path: '/404',
            //     component: () =>
            //         import ('@/page/404.vue'),
            //     meta: { title: '404' }
            // },
            // {
            //     path: '/403',
            //     component: () =>
            //         import ('@/page/403.vue'),
            //     meta: { title: '403' }
            // },
        ]
    },
    {
        path: '/aa',
        name: 'aa',
        component: () =>
            import('@/views/test/DD.vue')
    },
    //沥青详情跳转
    {
        path: '/pitchDetails',
        name: 'pitchDetails',
        component: () =>
            import('@/views/pitchManage/dyMonitorManage/pitchDetails/pitchDetails.vue')
    },
    {
        path: '/detailedClose',
        name: 'detailedClose',
        component: DetailedClose

    },
    {
        path: '/loginfree', //免登陆
        name: 'loginfree',
        component: () =>
            import('../views/loginfree.vue')
    },
    {
        path: '/loginHttps', //免登陆
        name: 'loginHttps',
        component: () =>
            import('../views/loginHttps.vue')
    },
    {
        path: '/home',
        name: 'Home',
        component: Home,
        // redirect: "/aaa",
        children: [{
                path: '/aa', //楠楠测试
                name: 'aaa',
                component: () =>
                    import('../views/test/aa.vue')
            },
            {
                path: '/table', //表格测试
                name: 'bbb',
                component: () =>
                    import('../views/test/table.vue')
            }, {
                path: '/bb', //娜娜测试
                name: 'b',
                component: () =>
                    import('../views/test/bb.vue')
            }, {
                path: '/tree', //树状图测试
                name: 'tree',
                component: () =>
                    import('../views/test/tree.vue')
            }, {
                path: '/select', //下拉框测试
                name: 'select',
                component: () =>
                    import('../views/test/select.vue')
            }, {
                path: '/upload', //文件上传
                name: 'upload',
                component: () =>
                    import('../views/test/upload.vue')
            },
            // 
            {
                path: '/codeGenerator', //代码生成器
                name: 'codeGenerator',
                component: () =>
                    import('../views/SysManage/minjManage/codeGenerator.vue')
            },
            {
                path: '/tt', //代码生成器
                name: 'tt',
                component: () =>
                    import('../views/test/tt.vue')
            },
            {
                path: '/zl', //代码生成器
                name: 'zl',
                component: () =>
                    import('../views/test/zl.vue')
            },
            {
                path: '/mould', //代码生成器
                name: 'mould',
                component: () =>
                    import('../views/test/mould.vue')
            },
            {
                path: '/rrrr', //代码生成器
                name: 'rrrr',
                component: () =>
                    import('../views/test/rrrr.vue')
            },
            // 
            // {
            //     path: '/Home1', //代码生成器
            //     name: 'Home1',
            //     component: () =>
            //         import('../views/test/Home1.vue')
            // },
            // AMapUI
            {
                path: '/index', //试验检测依据管理-----查看
                name: 'index',
                component: () =>
                    import('../views/index.vue')
            },

            // 系统业务数据字典

            {
                path: '/experiment', //试验检测依据管理-----查看
                name: 'experiment',
                component: () =>
                    import('../views/currencyManage/experiment')
            },
            {
                path: '/experimentText', //试验检测依据管理-----编辑
                name: 'experimentText',
                component: () =>
                    import('../views/currencyManage/experimentText')
            },
            {
                path: '/sample', //样品种类在线管理-----查看
                name: 'sample',
                component: () =>
                    import('../views/currencyManage/sample')
            },
            {
                path: '/instrument', //回弹仪器设备管理-----查看
                name: 'instrument',
                component: () =>
                    import('../views/currencyManage/instrument')
            },
            {
                path: '/instrumentText', //回弹仪器设备管理-----编辑
                name: 'instrumentText',
                component: () =>
                    import('../views/currencyManage/instrumentText')
            },
            {
                path: '/ProjectPage', //标段回弹工程划分-----查看
                name: 'ProjectPage',
                component: () =>
                    import('../views/currencyManage/ProjectPage.vue')
            },
            {
                path: '/ProjectPageText', //标段回弹工程划分-----编辑
                name: 'ProjectPageText',
                component: () =>
                    import('../views/currencyManage/ProjectPageText.vue')
            },
            // 系统业务数据字典
            // 工程结构现场检测
            // 工程结构现场检测之混凝土回弹
            {
                path: '/Control-1', //回弹检测结果管控——1
                name: 'Control-1',
                component: () =>
                    import('../views/PCManage/betonManage/Control-1.vue')
            },
            {
                path: '/Control-1Text', //回弹检测结果管控——1
                name: 'Control-1Text',
                component: () =>
                    import('../views/PCManage/betonManage/Control-1Text.vue')
            },

            {
                path: '/Control-2', //回弹检测结果管控——2
                name: 'Control-2',
                component: () =>
                    import('../views/PCManage/betonManage/Control-2.vue')
            },
            {
                path: '/Control-2Text', //回弹检测结果管控——2
                name: 'Control-2Text',
                component: () =>
                    import('../views/PCManage/betonManage/Control-2Text.vue')
            },
            {
                path: '/Control-3', //回弹检测结果管控——3
                name: 'Control-3',
                component: () =>
                    import('../views/PCManage/betonManage/Control-3.vue')
            },
            {
                path: '/Control-3Text', //回弹检测结果管控——3
                name: 'Control-3Text',
                component: () =>
                    import('../views/PCManage/betonManage/Control-3Text.vue')
            },
            // 工程结构现场检测之混凝土回弹
            // 工程结构现场检测之钢筋保护层检测
            {
                path: '/Steel-1', //钢筋保护层检测——1--查看
                name: 'Steel-1',
                component: () =>
                    import('../views/PCManage/coverManage/Steel-1.vue')
            },
            {
                path: '/Steel-1Text', //钢筋保护层检测——1--编辑
                name: 'Steel-1Text',
                component: () =>
                    import('../views/PCManage/coverManage/Steel-1Text.vue')
            },
            {
                path: '/Steel-2', //钢筋保护层检测——2--查看
                name: 'Steel-2',
                component: () =>
                    import('../views/PCManage/coverManage/Steel-2.vue')
            },
            {
                path: '/Steel-2Text', //钢筋保护层检测——2--编辑
                name: 'Steel-2Text',
                component: () =>
                    import('../views/PCManage/coverManage/Steel-2Text.vue')
            },
            // 工程结构现场检测之钢筋保护层检测
            //工程结构现场检测之基桩工程检测管理

            {
                path: '/engineering', // 基桩工程信息
                name: 'Engineering',
                component: () =>
                    import('../views/PCManage/pieManage/engineering.vue')
            },
            {
                path: '/engineeringText',
                name: 'EngineeringText',
                component: () =>
                    import('../views/PCManage/pieManage/engineeringText.vue')
            },
            // 基桩检测信息
            {
                path: '/Monitoring',
                name: 'Monitoring',
                component: () =>
                    import('../views/PCManage/pieManage/Monitoring.vue')
            },
            {
                path: '/MonitoringText',
                name: 'MonitoringText',
                component: () =>
                    import('../views/PCManage/pieManage/MonitoringText.vue')
            },
            // 基桩检测统计
            {
                path: '/building',
                name: 'building',
                component: () =>
                    import('../views/PCManage/pieManage/jisManage/building.vue')
            },
            {
                path: '/section',
                name: 'section',
                component: () =>
                    import('../views/PCManage/pieManage/jisManage/section.vue')
            },
            {
                path: '/project',
                name: 'project',
                component: () =>
                    import('../views/PCManage/pieManage/jisManage/project.vue')
            },
            // 基桩检测统计
            // 桩基检测任务
            {
                path: '/detectionTask',
                name: 'detectionTask',
                component: () =>
                    import('../views/PCManage/pieManage/detectionTask/index.vue')
            },
            // 桩基检测任务
            {
                path: '/detectionTaskText',
                name: 'detectionTaskText',
                component: () =>
                    import('../views/PCManage/pieManage/detectionTaskText/index.vue')
            },
            // 桩基检测数据
            {
                path: '/pilesDetectedData',
                name: 'pilesDetectedData',
                component: () =>
                    import('../views/PCManage/pieManage/pilesDetectedData/index.vue')
            },
            // 成孔检测数据
            {
                path: '/holeDetectedData',
                name: 'holeDetectedData',
                component: () =>
                    import('../views/PCManage/pieManage/holeDetectedData/index.vue')
            },
            // 检测设备管理
            {
                path: '/testEquipmentManage',
                name: 'testEquipmentManage',
                component: () =>
                    import('../views/PCManage/pieManage/testEquipmentManage/index.vue')
            },

            //工程结构现场检测之基桩工程检测管理
            // 工程结构现场检测

            // 拌合站
            // 监管系统

            // // 闭合记录
            // {
            //     path: '/closure',
            //     name: 'closure',
            //     component: () =>
            //         import('../views/HntManage/closure.vue')
            // },
            // {
            //     path: '/supervisionList',
            //     name: 'supervision',
            //     component: () =>
            //         import('../views/HntManage/supervisionList.vue')
            // },
            // // 砼-配合比--查看
            // {
            //     path: '/HntMixProportion',
            //     name: 'HntMixProportion',
            //     component: () =>
            //         import('../views/HntManage/coordinate/HntMixProportion.vue')
            // },
            // {
            //     path: '/HntMixProportionText',
            //     name: 'HntMixProportionText',
            //     component: () =>
            //         import('../views/HntManage/coordinate/HntMixProportionText.vue')
            // },
            // //   砼-设备检定--查看
            //   {
            //     path: '/EquipmentCalibration',
            //     name: 'EquipmentCalibration',
            //     component: () =>
            //         import('../views/HntManage/Equipment/EquipmentCalibration.vue')
            // },
            // //砼-设备检定--编辑
            // {
            //     path: '/EquipmentCalibrationText',
            //     name: 'EquipmentCalibrationText',
            //     component: () =>
            //         import('../views/HntManage/Equipment/EquipmentCalibrationText.vue')
            // },
            //     { // 生产用量
            //     path: '/productionAmount',
            //     name: 'productionAmount',
            //     component: () =>
            //         import('../views/HntManage/pcManage/productionAmount.vue')
            // },
            // { //材料用量
            //     path: '/materialConsumption',
            //     name: 'materialConsumption',
            //     component: () =>
            //         import('../views/HntManage/pcManage/materialConsumption.vue')
            // },
            //   // 水稳
            //   {
            //     path: '/instantly', //水稳-实时监控
            //     name: 'instantly',
            //     component: () =>
            //         import('@/views/WaterManage/trends/instantly/index.vue')
            // },
            // {
            //     path: '/Equipment', //水稳-设备检定查看
            //     name: 'Equipment',
            //     component: () =>
            //         import('@/views/WaterManage/Equipment/Equipment.vue')
            // },
            // {
            //     path: '/EquipmentText', //水稳-设备检定编辑
            //     name: 'EquipmentText',
            //     component: () =>
            //         import('@/views/WaterManage/Equipment/EquipmentText.vue')
            // },
            // { // 动态监控之实时数据
            //     path: '/real_timeData',
            //     name: 'real_timeData',
            //     component: () =>
            //         import('@/views/pitchManage/dyMonitorManage/real_timeData.vue')
            // },

            // {
            //     //沥青设备查看
            //     path: '/lqEquipment',
            //     name: 'lqEquipment',
            //     component: () =>
            //         import('@/views/pitchManage/Equipment/lqEquipment.vue')
            // },
            // {
            //     //沥青设备编辑
            //     path: '/lqEquipmentText',
            //     name: 'lqEquipmentText',
            //     component: () =>
            //         import('@/views/pitchManage/Equipment/lqEquipmentText.vue')
            // },
            // { //张拉--任务单--查看
            //     path: '/Tension_task_list',
            //     name: 'Tension_task_list',
            //     component: () =>
            //         import('../views/TensionAndGrout/TensionManage/Tension_task_list.vue')
            // },
            // { //张拉--任务单--编辑
            //     path: '/Tension_task_listText',
            //     name: 'Tension_task_listText',
            //     component: () =>
            //         import('../views/TensionAndGrout/TensionManage/Tension_task_listText.vue')
            // },
            // { // 动态监控之误差分析
            //     path: '/errorMonitoring',
            //     name: 'errorMonitoring',
            //     component: () =>
            //         import('@/views/pitchManage/dyMonitorManage/errorMonitoring.vue')
            // },
            // 张拉压浆
            //   { //张拉--实时数据查询
            //     path: '/TensionRealTime',
            //     name: 'TensionRealTime',
            //     component: () =>
            //         import('../views/TensionAndGrout/TensionManage/TensionRealTime.vue')
            // },
            // { //张拉--超标数据查询
            //     path: '/TensionExceedData',
            //     name: 'TensionExceedData',
            //     component: () =>
            //         import('../views/TensionAndGrout/TensionManage/TensionExceedData.vue')
            // },
            // { //压浆--任务单---查看
            //     path: '/Grout_task_list',
            //     name: 'Grout_task_list',
            //     component: () =>
            //         import('../views/TensionAndGrout/GroutManage/Grout_task_list.vue')
            // },
            // { //压浆--任务单---编辑
            //     path: '/Grout_task_listText',
            //     name: 'Grout_task_listText',
            //     component: () =>
            //         import('../views/TensionAndGrout/GroutManage/Grout_task_listText.vue')
            // },
            // { //压浆--实时数据查询
            //     path: '/GroutRealTime',
            //     name: 'GroutRealTime',
            //     component: () =>
            //         import('../views/TensionAndGrout/GroutManage/GroutRealTime.vue')
            // },

            // { //压浆--超标数据查询
            //     path: '/GroutExceedData',
            //     name: 'GroutExceedData',
            //     component: () =>
            //         import('../views/TensionAndGrout/GroutManage/GroutExceedData.vue')
            // },

            {
                path: '/superRecord', //水稳-超标记录
                name: 'superRecord',
                component: () =>
                    import('@/views/WaterManage/trends/superRecord.vue')
            },
            // {
            //     path: '/superRecord', //水稳-超标记录
            //     name: 'superRecord',
            //     component: () =>
            //         import('@/views/WaterManage/trends/superRecord/index.vue')
            // },
            {
                path: '/real_timeData',
                name: 'real_timeData',
                component: () =>
                    import('../views/pitchManage/dyMonitorManage/real_timeData/index.vue')
            },
            { // 动态监控之误差分析
                path: '/errorMonitoring',
                name: 'errorMonitoring',
                component: () =>
                    import('@/views/pitchManage/dyMonitorManage/errorMonitoring/index.vue')
            },
            {
                //沥青设备查看
                path: '/lqEquipment',
                name: 'lqEquipment',
                component: () =>
                    import('@/views/pitchManage/Equipment/lqEquipment/index.vue')
            },
            {
                //沥青设备编辑
                path: '/lqEquipmentText',
                name: 'lqEquipmentText',
                component: () =>
                    import('@/views/pitchManage/Equipment/lqEquipmentText/index.vue')
            },
            { //张拉--任务单--查看
                path: '/Tension_task_list',
                name: 'Tension_task_list',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/Tension_task_list/index.vue')
            },
            { //张拉--任务单--编辑
                path: '/Tension_task_listText',
                name: 'Tension_task_listText',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/Tension_task_listText/index.vue')
            },
            { //张拉--实时数据查询
                path: '/TensionRealTime',
                name: 'TensionRealTime',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionRealTime/index.vue')
            },
            { //张拉--超标数据查询
                path: '/TensionExceedData',
                name: 'TensionExceedData',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionExceedData/index.vue')
            },
            { //压浆--任务单---查看
                path: '/Grout_task_list',
                name: 'Grout_task_list',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/Grout_task_list/index.vue')
            },
            { //压浆--任务单---编辑
                path: '/Grout_task_listText',
                name: 'Grout_task_listText',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/Grout_task_listText/index.vue')
            },
            { //压浆--实时数据查询
                path: '/GroutRealTime',
                name: 'GroutRealTime',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutRealTime/index.vue')
            },
            { //压浆--超标数据查询
                path: '/GroutExceedData',
                name: 'GroutExceedData',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutExceedData/index.vue')
            },
            {
                path: '/HntMixProportion',
                name: 'HntMixProportion',
                component: () =>
                    import('../views/HntManage/coordinate/HntMixProportion/index.vue')
            },
            //砼-配合比--编辑

            {
                path: '/HntMixProportionText',
                name: 'HntMixProportionText',
                component: () =>
                    import('../views/HntManage/coordinate/HntMixProportionText/index.vue')
            },
            {
                path: '/supervisionList',
                name: 'supervision',
                component: () =>
                    import('../views/HntManage/supervisionList/index.vue')
            },
            {
                path: '/closure',
                name: 'closure',
                component: () =>
                    import('../views/HntManage/closure/index.vue')
            },
            //砼-设备检定--查看
            {
                path: '/EquipmentCalibration',
                name: 'EquipmentCalibration',
                component: () =>
                    import('../views/HntManage/Equipment/EquipmentCalibration/index.vue')
            },
            { // 生产用量
                path: '/productionAmount',
                name: 'productionAmount',
                component: () =>
                    import('../views/HntManage/pcManage/productionAmount/index.vue')
            },
            { //材料用量
                path: '/materialConsumption',
                name: 'materialConsumption',
                component: () =>
                    import('../views/HntManage/pcManage/materialConsumption/index.vue')
            },
            //砼-设备检定--编辑
            {
                path: '/EquipmentCalibrationText',
                name: 'EquipmentCalibrationText',
                component: () =>
                    import('../views/HntManage/Equipment/EquipmentCalibrationText/index.vue')
            },
            // 水稳
            {
                path: '/instantly', //水稳-实时监控
                name: 'instantly',
                component: () =>
                    import('@/views/WaterManage/trends/instantly/index.vue')
            },
            {
                path: '/Equipment', //水稳-设备检定查看
                name: 'Equipment',
                component: () =>
                    import('@/views/WaterManage/Equipment/Equipment/index.vue')
            },
            {
                path: '/EquipmentText', //水稳-设备检定编辑
                name: 'EquipmentText',
                component: () =>
                    import('@/views/WaterManage/Equipment/EquipmentText/index.vue')
            },

            //砼-场站塌陷度--查看
            {
                path: '/StationCollapse',
                name: 'StationCollapse',
                component: () =>
                    import('../views/HntManage/Station/StationCollapse.vue')
            },
            //砼-场站塌陷度--编辑
            {
                path: '/StationCollapseText',
                name: 'StationCollapseText',
                component: () =>
                    import('../views/HntManage/Station/StationCollapseText.vue')
            },
            //砼-现场塌陷度--查看
            {
                path: '/siteCollapse',
                name: 'siteCollapse',
                component: () =>
                    import('../views/HntManage/site/siteCollapse.vue')
            },
            //砼-现场塌陷度--编辑
            {
                path: '/siteCollapseText',
                name: 'siteCollapseText',
                component: () =>
                    import('../views/HntManage/site/siteCollapseText.vue')
            },
            // 理论配合比--查看
            {
                path: '/theoreticalMix',
                name: 'theoreticalMix',
                component: () =>
                    import('../views/HntManage/theoreticalMix/index.vue')
            },
            // 理论配合比--编辑
            {
                path: '/theoreticalMixText',
                name: 'theoreticalMixText',
                component: () =>
                    import('../views/HntManage/theoreticalMixText/index.vue')
            },
            // 施工配合比--查看
            {
                path: '/proportionMix',
                name: 'proportionMix',
                component: () =>
                    import('../views/HntManage/proportionMix/index.vue')
            },
            // 施工配合比--编辑
            {
                path: '/proportionMixText',
                name: 'proportionMixText',
                component: () =>
                    import('../views/HntManage/proportionMixText/index.vue')
            },
            // 浇筑令管理--查看
            {
                path: '/pouringOrder',
                name: 'pouringOrder',
                component: () =>
                    import('../views/HntManage/pouringOrder/index.vue')
            },
            // 浇筑令管理--编辑
            {
                path: '/pouringOrderText',
                name: 'pouringOrderText',
                component: () =>
                    import('../views/HntManage/pouringOrderText/index.vue')
            },

            // 产能分析
            {
                path: '/deliverability',
                name: 'deliverability',
                component: () =>
                    import('../views/HntManage/bhManage/deliverability.vue')
            },
            // 材料用量分析
            {
                path: '/Consumption',
                name: 'Consumption',
                component: () =>
                    import('../views/HntManage/bhManage/Consumption.vue')
            },
            // 材料偏差走势
            {
                path: '/deviationTrend',
                name: 'deviationTrend',
                component: () =>
                    import('../views/HntManage/bhManage/deviationTrend.vue')
            },
            // 生产时间段分析
            {
                path: '/timePeriod',
                name: 'timePeriod',
                component: () =>
                    import('../views/HntManage/bhManage/timePeriod.vue')
            },
            // 混凝土产量统计
            {
                path: '/output',
                name: 'output',
                component: () =>
                    import('../views/HntManage/stManage/output.vue')
            }, // 混凝土超标统计
            {
                path: '/exceedance',
                name: 'exceedance',
                component: () =>
                    import('../views/HntManage/stManage/exceedance.vue')
            }, // 原材消耗统计
            {
                path: '/material',
                name: 'material',
                component: () =>
                    import('../views/HntManage/stManage/material.vue')
            },



            // { // 用量偏差
            //     path: '/dosageDeviation',
            //     name: 'dosageDeviation',
            //     component: () =>
            //         import('../views/HntManage/pcManage/dosageDeviation.vue')
            // },

            { //智能监控 联网状态
                path: '/networkStatus',
                name: 'networkStatus',
                component: () =>
                    import('../views/HntManage/controlManage/networkStatus.vue')
            },
            // 拌合站设置
            {
                path: '/mixingPlant',
                name: 'mixingPlant',
                component: () =>
                    import('../views/HntManage/TbhxtManage/mixingPlant.vue')
            },
            // 报警参数设置
            {
                path: '/alarmParameterSetting',
                name: 'alarmParameterSetting',
                component: () =>
                    import('../views/HntManage/TbhxtManage/alarmParameterSetting.vue')
            },
            // 预警通知人员对象
            {
                path: '/warningObject',
                name: 'warningObject',
                component: () =>
                    import('../views/HntManage/TbhxtManage/warningObject.vue')
            },
            // 预警短信模板
            {
                path: '/warningInformation',
                name: 'warningInformation',
                component: () =>
                    import('../views/HntManage/TbhxtManage/warningInformation.vue')
            },
            // 拌合站





            // {
            //     path: '/WaterClosure', //水稳-超标记录
            //     name: 'WaterClosure',
            //     component: () =>
            //         import('@/views/WaterManage/WaterClosure.vue')
            // },
            {
                path: '/waterProduce', //水稳-产能分析
                name: 'waterProduce',
                component: () =>
                    import('@/views/WaterManage/analyse/waterProduce.vue')
            },
            {
                path: '/waterConsumption', //水稳-材料用量
                name: 'waterConsumption',
                component: () =>
                    import('@/views/WaterManage/analyse/waterConsumption.vue')
            },
            {
                path: '/percentage', //水稳-材料百分比
                name: 'percentage',
                component: () =>
                    import('@/views/WaterManage/analyse/percentage.vue')
            }, {
                path: '/WaterDeviation', //水稳-材料偏差
                name: 'WaterDeviation',
                component: () =>
                    import('@/views/WaterManage/analyse/WaterDeviation.vue')
            },
            {
                path: '/waterOutput', //水稳-产量统计
                name: 'waterOutput',
                component: () =>
                    import('@/views/WaterManage/statistics/waterOutput.vue')
            },
            // {
            //     path: '/overstep', //水稳-超标统计
            //     name: 'overstep',
            //     component: () =>
            //         import('@/views/WaterManage/statistics/overstep.vue')
            // },
            {
                path: '/waterMaterial', //水稳-原材料消耗
                name: 'waterMaterial',
                component: () =>
                    import('@/views/WaterManage/statistics/waterMaterial.vue')
            },
            {
                path: '/networking', //水稳-联网状态
                name: 'networking',
                component: () =>
                    import('@/views/WaterManage/intellect/networking.vue')
            },
            {
                path: '/swMixingPlant', //水稳-系统设置
                name: 'swMixingPlant',
                component: () =>
                    import('@/views/WaterManage/swHxtManage/swMixingPlant.vue')
            },

            {
                path: '/swAlarmParameterSetting', //水稳-材料超标参数设置
                name: 'swAlarmParameterSetting',
                component: () =>
                    import('@/views/WaterManage/swHxtManage/swAlarmParameterSetting.vue')
            },
            {
                path: '/sWwarningObject', //水稳-预警通知人员对象
                name: 'sWwarningObject',
                component: () =>
                    import('@/views/WaterManage/swHxtManage/sWwarningObject.vue')
            },
            {
                path: '/sWwarningInformation', //水稳-预警短信模板
                name: 'sWwarningInformation',
                component: () =>
                    import('@/views/WaterManage/swHxtManage/sWwarningInformation.vue')
            },
            // 
            // {
            //     path: '/collection', //水稳-采集状态
            //     name: 'collection',
            //     component: () =>
            //         import('@/views/WaterManage/intellect/collection.vue')
            // },
            // {
            //     path: '/unusual', //水稳-异常提醒
            //     name: 'unusual',
            //     component: () =>
            //         import('@/views/WaterManage/intellect/unusual.vue')
            // },
            // 水稳
            // 沥青

            // 动态监控

            {
                // 动态监控之实时监控
                path: '/real_timeMonitoring',
                name: 'real_timeMonitoring',
                component: () =>
                    import('@/views/pitchManage/dyMonitorManage/real_timeMonitoring.vue')
            },




            // 动态监控

            // 数据分析之误差分析
            {
                path: '/errorAnalysis',
                name: 'errorAnalysis',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/errorAnalysis.vue')
            },
            // 数据分析之生产时间段分析
            {
                path: '/productionPeriod',
                name: 'productionPeriod',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/productionPeriod.vue')
            },
            // 数据分析之材料用量分析
            {
                path: '/materConsumption',
                name: 'materConsumption',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/materConsumption.vue')
            },
            // 数据分析之日统计
            {
                path: '/dayStatistics',
                name: 'dayStatistics',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/dayStatistics.vue')
            },
            // 数据分析之生产统计
            {
                path: '/productionStatistics',
                name: 'productionStatistics',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/productionStatistics.vue')
            },
            // // 数据分析之生产信息
            // {
            //     path: '/ProductionInformation',
            //     name: 'ProductionInformation',
            //     component: () =>
            //         import('@/views/pitchManage/dataAnalysisManage/ProductionInformation.vue')
            // },
            // 数据分析之报警数据处理
            {
                path: '/alarmData',
                name: 'alarmData',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/alarmData.vue')
            },

            // 智能检测之设备状态
            {
                path: '/equipmentStatus',
                name: 'equipmentStatus',
                component: () =>
                    import('@/views/pitchManage/intelligentManage/equipmentStatus.vue')
            },
            // 统计分析之原材统计
            {
                path: '/rawMaterial',
                name: 'rawMaterial',
                component: () =>
                    import('@/views/pitchManage/stAnalysisManage/rawMaterial.vue')
            },
            // 统计分析之产量统计
            {
                path: '/outputStatistics',
                name: 'outputStatistics',
                component: () =>
                    import('@/views/pitchManage/stAnalysisManage/outputStatistics.vue')
            },
            // 统计分析之月统计
            {
                path: '/monthStatistics',
                name: 'monthStatistics',
                component: () =>
                    import('@/views/pitchManage/stAnalysisManage/monthStatistics.vue')
            },
            // 基础设置之配合比管理
            {
                path: '/mixProportion',
                name: 'mixProportion',
                component: () =>
                    import('@/views/pitchManage/bsManage/mixProportion.vue')
            },

            // 系统设置之报警参数设置
            {
                path: '/lqAlarmParameterSetting',
                name: 'lqAlarmParameterSetting',
                component: () =>
                    import('@/views/pitchManage/lqxtManage/lqAlarmParameterSetting.vue')
            },

            // 系统设置之短信预警模板
            {
                path: '/lqWarningInformation',
                name: 'lqWarningInformation',
                component: () =>
                    import('@/views/pitchManage/lqxtManage/lqWarningInformation.vue')
            },
            // 系统设置之拌合站设置
            {
                path: '/lqMixingPlant',
                name: 'lqMixingPlant',
                component: () =>
                    import('@/views/pitchManage/lqxtManage/lqMixingPlant.vue')
            },
            // 系统设置之预警通知对象人员
            {
                path: '/lqwarningObject',
                name: 'lqwarningObject',
                component: () =>
                    import('@/views/pitchManage/lqxtManage/lqwarningObject.vue')
            },


            // 沥青

            {
                // 班组---查看
                path: '/groupClass',
                name: 'groupClass',
                component: () =>
                    import('../views/QualityGridManage/group/groupClass.vue')
            },

            {
                // 班组---编辑
                path: '/groupClassText',
                name: 'groupClassText',
                component: () =>
                    import('../views/QualityGridManage/group/groupClassText.vue')
            },
            {
                // 第三方检查---查看
                path: '/ThreeCheck',
                name: 'ThreeCheck',
                component: () =>
                    import('../views/QualityGridManage/three/ThreeCheck.vue')
            },
            {
                // 第三方检查---编辑
                path: '/ThreeCheckText',
                name: 'ThreeCheckText',
                component: () =>
                    import('../views/QualityGridManage/three/ThreeCheckText.vue')
            },
            {
                // 工作指令--下发---查看
                path: '/distribute',
                name: 'distribute',
                component: () =>
                    import('../views/QualityGridManage/workOrder/distribute/distribute.vue')
            },
            {
                // 工作指令--下发---编辑
                path: '/distributeText',
                name: 'distributeText',
                component: () =>
                    import('../views/QualityGridManage/workOrder/distribute/distributeText.vue')
            },
            {
                // 工作指令--执行---查看
                path: '/execute',
                name: 'execute',
                component: () =>
                    import('../views/QualityGridManage/workOrder/execute/execute.vue')
            },
            {
                // 工作指令--执行---编辑
                path: '/executeText',
                name: 'executeText',
                component: () =>
                    import('../views/QualityGridManage/workOrder/execute/executeText.vue')
            },

            //工序报验-WBS工程划分
            {
                path: '/stationWorkList',
                name: 'stationWorkList',
                component: () =>
                    import('../views/QualityGridManage/stationWork/stationWorkList.vue')
            },
            //工序报验--查看
            {
                path: '/ProcessInspection',
                name: 'ProcessInspection',
                component: () =>
                    import('../views/QualityGridManage/stationWork/ProcessInspection.vue')
            },
            //工序报验--编辑
            {
                path: '/ProcessInspectionText',
                name: 'ProcessInspectionText',
                component: () =>
                    import('../views/QualityGridManage/stationWork/ProcessInspectionText.vue')
            },
            //现场生产质量网格
            {
                path: '/stationQualityList',
                name: 'stationQualityList',
                component: () =>
                    import('../views/QualityGridManage/grid/stationQuality/stationQualityList.vue')
            },
            {
                path: '/stationQualityListText',
                name: 'stationQualityListText',
                component: () =>
                    import('../views/QualityGridManage/grid/stationQuality/stationQualityListText.vue')
            },
            //场站/实体开工管理
            {
                path: '/startLook',
                name: 'startLook',
                component: () =>
                    import('../views/QualityGridManage/grid/start/startLook.vue')
            },
            {
                path: '/startText',
                name: 'startText',
                component: () =>
                    import('../views/QualityGridManage/grid/start/startText.vue')
            },
            //质量管理责任网格
            {
                path: '/responsibility',
                name: 'responsibility',
                component: () =>
                    import('../views/QualityGridManage/grid/responsibilityGrid/responsibility.vue')
            },
            {
                path: '/responsibilityText',
                name: 'responsibilityText',
                component: () =>
                    import('../views/QualityGridManage/grid/responsibilityGrid/responsibilityText.vue')
            },
            //巡查问题
            {
                path: '/patrol',
                name: 'patrol',
                component: () =>
                    import('../views/QualityGridManage/grid/patrol/patrol.vue')
            },

            // 张拉压浆


            { //张拉--超标数据处理
                path: '/TensionExceedHandle',
                name: 'TensionExceedHandle',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionExceedHandle.vue')
            },


            { //张拉-系统设置--梁场信息设置
                path: '/TensionBeamYard',
                name: 'TensionBeamYard',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionYjxtManage/TensionBeamYard.vue')
            },
            { //张拉-系统设置--预警信息设置
                path: '/TensionEarlyWarning',
                name: 'TensionEarlyWarning',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionYjxtManage/TensionEarlyWarning.vue')
            },
            { //张拉-系统设置--预警人员设置
                path: '/TensionWarningPerson',
                name: 'TensionWarningPerson',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionYjxtManage/TensionWarningPerson.vue')
            },
            { //张拉-系统设置--预警短信模板管理
                path: '/TensionAlertTemplate',
                name: 'TensionAlertTemplate',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionYjxtManage/TensionAlertTemplate.vue')
            },

            { //压浆--超标数据处理
                path: '/GroutExceedHandle',
                name: 'GroutExceedHandle',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutExceedHandle.vue')
            },


            { //压浆-系统设置--梁场信息设置
                path: '/GroutBeamYard',
                name: 'GroutBeamYard',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutYjxtManage/GroutBeamYard.vue')
            },
            { //压浆-系统设置--预警信息设置
                path: '/GroutEarlyWarning',
                name: 'GroutEarlyWarning',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutYjxtManage/GroutEarlyWarning.vue')
            },
            { //压浆-系统设置--预警人员设置
                path: '/GroutWarningPerson',
                name: 'GroutWarningPerson',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutYjxtManage/GroutWarningPerson.vue')
            },
            { //压浆-系统设置--预警短信模板管理
                path: '/GroutAlertTemplate',
                name: 'GroutAlertTemplate',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutYjxtManage/GroutAlertTemplate.vue')
            },

            // 张拉压浆





            // 张拉压浆_瑞仓
            { //张拉--实时数据查询
                path: '/TensionRealTime_Ruicang',
                name: 'TensionRealTime_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/TensionManage_Ruicang/TensionRealTime_Ruicang.vue')
            },
            { //张拉--超标数据查询
                path: '/TensionExceedData_Ruicang',
                name: 'TensionExceedData_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/TensionManage_Ruicang/TensionExceedData_Ruicang.vue')
            },
            { //张拉--超标数据处理
                path: '/TensionExceedHandle_Ruicang',
                name: 'TensionExceedHandle_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/TensionManage_Ruicang/TensionExceedHandle_Ruicang.vue')
            },
            { //张拉--任务单--查看
                path: '/Tension_task_list_Ruicang',
                name: 'Tension_task_list_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/TensionManage_Ruicang/Tension_task_list_Ruicang.vue')
            },
            { //张拉--任务单--编辑
                path: '/Tension_task_listText_Ruicang',
                name: 'Tension_task_listText_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/TensionManage_Ruicang/Tension_task_listText_Ruicang.vue')
            },

            { //张拉-系统设置--梁场信息设置
                path: '/TensionBeamYard_Ruicang',
                name: 'TensionBeamYard_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/TensionManage_Ruicang/TensionYjxtManage_Ruicang/TensionBeamYard_Ruicang.vue')
            },
            { //张拉-系统设置--预警信息设置
                path: '/TensionEarlyWarning_Ruicang',
                name: 'TensionEarlyWarning_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/TensionManage_Ruicang/TensionYjxtManage_Ruicang/TensionEarlyWarning_Ruicang.vue')
            },
            { //张拉-系统设置--预警人员设置
                path: '/TensionWarningPerson_Ruicang',
                name: 'TensionWarningPerson_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/TensionManage_Ruicang/TensionYjxtManage_Ruicang/TensionWarningPerson_Ruicang.vue')
            },
            { //张拉-系统设置--预警短信模板管理
                path: '/TensionAlertTemplate_Ruicang',
                name: 'TensionAlertTemplate_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/TensionManage_Ruicang/TensionYjxtManage_Ruicang/TensionAlertTemplate_Ruicang.vue')
            },
            { //压浆--实时数据查询
                path: '/GroutRealTime_Ruicang',
                name: 'GroutRealTime_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/GroutManage_Ruicang/GroutRealTime_Ruicang.vue')
            },
            { //压浆--超标数据查询
                path: '/GroutExceedData_Ruicang',
                name: 'GroutExceedData_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/GroutManage_Ruicang/GroutExceedData_Ruicang.vue')
            },
            { //压浆--超标数据处理
                path: '/GroutExceedHandle_Ruicang',
                name: 'GroutExceedHandle_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/GroutManage_Ruicang/GroutExceedHandle_Ruicang.vue')
            },
            { //压浆--任务单---查看
                path: '/Grout_task_list_Ruicang',
                name: 'Grout_task_list_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/GroutManage_Ruicang/Grout_task_list_Ruicang.vue')
            },
            { //压浆--任务单---编辑
                path: '/Grout_task_listText_Ruicang',
                name: 'Grout_task_listText_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/GroutManage_Ruicang/Grout_task_listText_Ruicang.vue')
            },

            { //压浆-系统设置--梁场信息设置
                path: '/GroutBeamYard_Ruicang',
                name: 'GroutBeamYard_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/GroutManage_Ruicang/GroutYjxtManage_Ruicang/GroutBeamYard_Ruicang.vue')
            },
            { //压浆-系统设置--预警信息设置
                path: '/GroutEarlyWarning_Ruicang',
                name: 'GroutEarlyWarning_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/GroutManage_Ruicang/GroutYjxtManage_Ruicang/GroutEarlyWarning_Ruicang.vue')
            },
            { //压浆-系统设置--预警人员设置
                path: '/GroutWarningPerson_Ruicang',
                name: 'GroutWarningPerson_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/GroutManage_Ruicang/GroutYjxtManage_Ruicang/GroutWarningPerson_Ruicang.vue')
            },
            { //压浆-系统设置--预警短信模板管理
                path: '/GroutAlertTemplate_Ruicang',
                name: 'GroutAlertTemplate_Ruicang',
                component: () =>
                    import('../views/TensionAndGrout_Ruicang/GroutManage_Ruicang/GroutYjxtManage_Ruicang/GroutAlertTemplate_Ruicang.vue')
            },

            // 张拉压浆_瑞仓



            // 材料数据字典
            { // 材料规格管理(B/S)
                path: '/specificationManagement',
                name: 'specificationManagement',
                component: () =>
                    import('../views/materialDataManage/specificationManagement/index.vue')
            },
            { // 材料规格管理(B/S)编辑
                path: '/specificationManagementText',
                name: 'specificationManagementText',
                component: () =>
                    import('../views/materialDataManage/specificationManagementText/index.vue')
            },
            { // 材料种类管理(B/S)
                path: '/categoryManagement',
                name: 'categoryManagement',
                component: () =>
                    import('../views/materialDataManage/categoryManagement/index.vue')
            },
            { // 材料种类管理(B/S)编辑
                path: '/categoryManagementText',
                name: 'categoryManagementText',
                component: () =>
                    import('../views/materialDataManage/categoryManagementText/index.vue')
            },

            { // 材料检测类别
                path: '/testCategory',
                name: 'testCategory',
                component: () =>
                    import('../views/materialDataManage/testCategory/index.vue')
            },

            { // 生产厂家
                path: '/manufacturer',
                name: 'manufacturer',
                component: () =>
                    import('../views/materialDataManage/manufacturer/index.vue')
            },
            { // 生产厂家编辑
                path: '/manufacturerText',
                name: 'manufacturerText',
                component: () =>
                    import('../views/materialDataManage/manufacturerText/index.vue')
            },
            { // 供应商
                path: '/supplier',
                name: 'supplier',
                component: () =>
                    import('../views/materialDataManage/supplier/index.vue')
            },
            { // 供应商编辑
                path: '/supplierText',
                name: 'supplierText',
                component: () =>
                    import('../views/materialDataManage/supplierText/index.vue')
            },
            { // 编号规则
                path: '/numberingRules',
                name: 'numberingRules',
                component: () =>
                    import('../views/materialDataManage/numberingRules/index.vue')
            },
            { // 编号规则编辑
                path: '/numberingRulesText',
                name: 'numberingRulesText',
                component: () =>
                    import('../views/materialDataManage/numberingRulesText/index.vue')
            },
            { // 材料存放位置
                path: '/materialLocation',
                name: 'materialLocation',
                component: () =>
                    import('../views/materialDataManage/materialLocation/index.vue')
            },
            { // 材料存放位置编辑
                path: '/materialLocationText',
                name: 'materialLocationText',
                component: () =>
                    import('../views/materialDataManage/materialLocationText/index.vue')
            },
            { // 试件存放位置编辑
                path: '/testPieceLocation',
                name: 'testPieceLocation',
                component: () =>
                    import('../views/materialDataManage/testPieceLocation/index.vue')
            },
            { // 试件存放位置编辑
                path: '/testPieceLocationText',
                name: 'testPieceLocationText',
                component: () =>
                    import('../views/materialDataManage/testPieceLocationText/index.vue')
            },

            { // 试验闭合流程 
                path: '/experimentalClosureProcess',
                name: 'experimentalClosureProcess',
                component: () =>
                    import('../views/materialDataManage/experimentalClosureProcess/index.vue')
            },

            { // 软基闭合流程
                path: '/softFoundationSeted',
                name: 'softFoundationSeted',
                component: () =>
                    import('../views/materialDataManage/softFoundationSeted/index.vue')
            },

            { // 回弹闭合流程 
                path: '/htOverSeting',
                name: 'htOverSeting',
                component: () =>
                    import('../views/materialDataManage/htOverSeting/index.vue')
            },

            // 
            // 材料数据字典
            // 原材料管理
            { // 材料进场台帐
                path: '/entryLedger',
                name: 'entryLedger',
                component: () =>
                    import('../views/rawMaterialManage/entryLedger/index.vue')
            },
            { // 材料进场台帐编辑
                path: '/entryLedgerText',
                name: 'entryLedgerText',
                component: () =>
                    import('../views/rawMaterialManage/entryLedgerText/index.vue')
            },
            { // 材料检测台帐
                path: '/inspectionLedger',
                name: 'inspectionLedger',
                component: () =>
                    import('../views/rawMaterialManage/inspectionLedger/index.vue')
            },
            // 原材料管理


            // 见证取样管理
            { // 现场见证取样--查看
                path: '/fieldSampling',
                name: 'fieldSampling',
                component: () =>
                    import('../views/sampleManage/fieldSampling/index.vue')
            },
            { // 现场见证取样--编辑
                path: '/fieldSamplingText',
                name: 'fieldSamplingText',
                component: () =>
                    import('../views/sampleManage/fieldSamplingText/index.vue')
            },
            { // 样品室内收样--查看
                path: '/collection',
                name: 'collection',
                component: () =>
                    import('../views/sampleManage/collection/index.vue')
            },
            { // 样品室内收样--编辑
                path: '/collectionText',
                name: 'collectionText',
                component: () =>
                    import('../views/sampleManage/collectionText/index.vue')
            },
            { // 材料检测委托单--查看
                path: '/sampleMaterial',
                name: 'sampleMaterial',
                component: () =>
                    import('../views/sampleManage/sampleMaterial/index.vue')
            },
            { // 材料检测委托单--编辑
                path: '/sampleMaterialText',
                name: 'sampleMaterialText',
                component: () =>
                    import('../views/sampleManage/sampleMaterialText/index.vue')
            },
            // 见证取样管理


            // 试验检测管理
            { // 备案信息管理
                path: '/filing',
                name: 'filing',
                component: () =>
                    import('../views/testDetectionManage/filing/index.vue')
            },
            { // 样品登记台帐
                path: '/samplesLedger',
                name: 'samplesLedger',
                component: () =>
                    import('../views/testDetectionManage/samplesLedger/index.vue')
            },
            { // 检测报告台帐
                path: '/testingLedger',
                name: 'testingLedger',
                component: () =>
                    import('../views/testDetectionManage/testingLedger/index.vue')
            },
            { // 不合格报告管理--查看
                path: '/unqualifiedReport',
                name: 'unqualifiedReport',
                component: () =>
                    import('../views/testDetectionManage/unqualifiedReport/index.vue')
            },
            // { // 不合格报告管理--编辑
            //     path: '/unqualifiedReportText',
            //     name: 'unqualifiedReportText',
            //     component: () =>
            //         import('../views/testDetectionManage/unqualifiedReportText/index.vue')
            // },
            { // 材料报验单管理--查看
                path: '/InspectionForm',
                name: 'InspectionForm',
                component: () =>
                    import('../views/testDetectionManage/InspectionForm/index.vue')
            },
            { // 材料报验单管理--编辑
                path: '/InspectionFormText',
                name: 'InspectionFormText',
                component: () =>
                    import('../views/testDetectionManage/InspectionFormText/index.vue')
            },
            // 试验检测管理

            // 外委检测管理
            { // 外委样品管理
                path: '/outsourcedSample',
                name: 'outsourcedSample',
                component: () =>
                    import('../views/outsourcedManage/outsourcedSample/index.vue')
            },
            { // 外委样品管理编辑
                path: '/outsourcedSampleText',
                name: 'outsourcedSampleText',
                component: () =>
                    import('../views/outsourcedManage/outsourcedSampleText/index.vue')
            },
            { // 外委报告管理
                path: '/qualificationReport',
                name: 'qualificationReport',
                component: () =>
                    import('../views/outsourcedManage/qualificationReport/index.vue')
            },
            { // 外委报告管理编辑
                path: '/qualificationReportText',
                name: 'qualificationReportText',
                component: () =>
                    import('../views/outsourcedManage/qualificationReportText/index.vue')
            },
            { // 外委样品管理
                path: '/outUnQualifiedReports',
                name: 'outUnQualifiedReports',
                component: () =>
                    import('../views/outsourcedManage/outUnQualifiedReports/index.vue')
            },
            { // 外委样品管理编辑
                path: '/outUnQualifiedReportsText',
                name: 'outUnQualifiedReportsText',
                component: () =>
                    import('../views/outsourcedManage/outUnQualifiedReportsText/index.vue')
            },
            // 外委检测管理
            // 智能养护管理
            { // 试件入库管理
                path: '/sampleStorage',
                name: 'sampleStorage',
                component: () =>
                    import('../views/intelligentMaintenanceManage/sampleStorage/index.vue')
            },
            { // 试件出库管理
                path: '/sampleOutbound',
                name: 'sampleOutbound',
                component: () =>
                    import('../views/intelligentMaintenanceManage/sampleOutbound/index.vue')
            },
            { // 温湿度在线监控
                path: '/temperature&humidity',
                name: 'temperature&humidity',
                component: () =>
                    import('../views/intelligentMaintenanceManage/temperature&humidity/index.vue')
            },
            // 智能养护管理
            // 试验机联网
            { // 待试验样品
                path: '/sampleTestedManage',
                name: 'sampleTestedManage',
                component: () =>
                    import('../views/machineNetworkManage/sampleTestedManage/index.vue')
            },
            { // 试验数据监控之压力机数据监控
                path: '/pressDataMonitor',
                name: 'pressDataMonitor',
                component: () =>
                    import('../views/machineNetworkManage/testDataMonitorManage/pressDataMonitor/index.vue')
            },
            { // 试验数据监控之万能机数据监控
                path: '/zigzagDataMonitor',
                name: 'zigzagDataMonitor',
                component: () =>
                    import('../views/machineNetworkManage/testDataMonitorManage/zigzagDataMonitor/index.vue')
            },
            { // 试验数据监控之抗折抗压机数据监控
                path: '/compressivePressDataMonitor',
                name: 'compressivePressDataMonitor',
                component: () =>
                    import('../views/machineNetworkManage/testDataMonitorManage/compressivePressDataMonitor/index.vue')
            },
            { // 试验数据监控之沥青设备监控--针入度
                path: '/penetrationMonitor',
                name: 'penetrationMonitor',
                component: () =>
                    import('../views/machineNetworkManage/testDataMonitorManage/asphaltEquipmentMonitor/penetrationMonitor/index.vue')
            },
            { // 试验数据监控之沥青设备监控--软化点
                path: '/softenPointMonitor',
                name: 'softenPointMonitor',
                component: () =>
                    import('../views/machineNetworkManage/testDataMonitorManage/asphaltEquipmentMonitor/penetrationMonitor/index.vue')
            },
            { // 试验数据监控之沥青设备监控--延度
                path: '/ductilityMonitor',
                name: 'ductilityMonitor',
                component: () =>
                    import('../views/machineNetworkManage/testDataMonitorManage/asphaltEquipmentMonitor/ductilityMonitor/index.vue')
            },
            { // 试验数据监控之沥青混合料监控--稳定度
                path: '/stabilityMonitor',
                name: 'stabilityMonitor',
                component: () =>
                    import('../views/machineNetworkManage/testDataMonitorManage/asphaltMixtureMonitor/stabilityMonitor/index.vue')
            },
            { // 试验数据监控之沥青混合料监控--沥青含量
                path: '/asphaltContentMonitor',
                name: 'asphaltContentMonitor',
                component: () =>
                    import('../views/machineNetworkManage/testDataMonitorManage/asphaltMixtureMonitor/asphaltContentMonitor/index.vue')
            },
            { // 试验数据监控之沥青混合料监控--车辙
                path: '/rutMonitor',
                name: 'rutMonitor',
                component: () =>
                    import('../views/machineNetworkManage/testDataMonitorManage/asphaltMixtureMonitor/rutMonitor/index.vue')
            },

            { // 试验数据处理之压力机数据处理
                path: '/pressDataProcess',
                name: 'pressDataProcess',
                component: () =>
                    import('../views/machineNetworkManage/testDataProcessManage/pressDataProcess/index.vue')
            },
            { // 试验数据处理之万能机数据处理
                path: '/zigzagDataProcess',
                name: 'zigzagDataProcess',
                component: () =>
                    import('../views/machineNetworkManage/testDataProcessManage/zigzagDataProcess/index.vue')
            },
            { // 试验数据处理之抗折抗压机数据处理
                path: '/compressivePressDataProcess',
                name: 'compressivePressDataProcess',
                component: () =>
                    import('../views/machineNetworkManage/testDataProcessManage/compressivePressDataProcess/index.vue')
            },
            { // 试验数据处理之沥青设备处理--针入度
                path: '/penetrationProcess',
                name: 'penetrationProcess',
                component: () =>
                    import('../views/machineNetworkManage/testDataProcessManage/asphaltEquipmentProcess/penetrationProcess/index.vue')
            },
            { // 试验数据处理之沥青设备处理--软化点
                path: '/softenPointProcess',
                name: 'softenPointProcess',
                component: () =>
                    import('../views/machineNetworkManage/testDataProcessManage/asphaltEquipmentProcess/penetrationProcess/index.vue')
            },
            { // 试验数据处理之沥青设备处理--延度
                path: '/ductilityProcess',
                name: 'ductilityProcess',
                component: () =>
                    import('../views/machineNetworkManage/testDataProcessManage/asphaltEquipmentProcess/ductilityProcess/index.vue')
            },
            { // 试验数据处理之沥青混合料处理--稳定度
                path: '/stabilityProcess',
                name: 'stabilityProcess',
                component: () =>
                    import('../views/machineNetworkManage/testDataProcessManage/asphaltMixtureProcess/stabilityProcess/index.vue')
            },
            { // 试验数据处理之沥青混合料处理--沥青含量
                path: '/asphaltContentProcess',
                name: 'asphaltContentProcess',
                component: () =>
                    import('../views/machineNetworkManage/testDataProcessManage/asphaltMixtureProcess/asphaltContentProcess/index.vue')
            },
            { // 试验数据处理之沥青混合料处理--车辙
                path: '/rutProcess',
                name: 'rutProcess',
                component: () =>
                    import('../views/machineNetworkManage/testDataProcessManage/asphaltMixtureProcess/rutProcess/index.vue')
            },
            { // 数据统计分析--混凝土质量趋势
                path: '/concreteQuality',
                name: 'concreteQuality',
                component: () =>
                    import('../views/machineNetworkManage/analysisDataManage/concreteQuality/index.vue')
            },
            { // 数据统计分析--钢筋质量趋势
                path: '/rebarQuality',
                name: 'rebarQuality',
                component: () =>
                    import('../views/machineNetworkManage/analysisDataManage/rebarQuality/index.vue')
            }, { // 数据统计分析--水泥质量趋势
                path: '/cementQuality',
                name: 'cementQuality',
                component: () =>
                    import('../views/machineNetworkManage/analysisDataManage/cementQuality/index.vue')
            }, { // 数据统计分析--砂浆质量趋势
                path: '/mortarQuality',
                name: 'mortarQuality',
                component: () =>
                    import('../views/machineNetworkManage/analysisDataManage/mortarQuality/index.vue')
            },
            { // 数据统计分析--净浆质量趋势
                path: '/pasteQuality',
                name: 'pasteQuality',
                component: () =>
                    import('../views/machineNetworkManage/analysisDataManage/pasteQuality/index.vue')
            },
            // 试验机联网




            // 回弹强度检测
            { // 回弹数据字典--检测判定依据
                path: '/detectionCriteria',
                name: 'detectionCriteria',
                component: () =>
                    import('../views/reboundStrengthManage/reboundDataDictionary/detectionCriteria/index.vue')
            },
            { // 回弹数据字典--检测判定依据
                path: '/detectionCriteriaText',
                name: 'detectionCriteriaText',
                component: () =>
                    import('../views/reboundStrengthManage/reboundDataDictionary/detectionCriteriaText/index.vue')
            },
            { // 回弹数据字典--回弹检测设备
                path: '/reboundDetectionEquipment',
                name: 'reboundDetectionEquipment',
                component: () =>
                    import('../views/reboundStrengthManage/reboundDataDictionary/reboundDetectionEquipment/index.vue')
            },
            { // 回弹数据字典--回弹检测设备
                path: '/reboundDetectionEquipmentText',
                name: 'reboundDetectionEquipmentText',
                component: () =>
                    import('../views/reboundStrengthManage/reboundDataDictionary/reboundDetectionEquipmentText/index.vue')
            },


            { // 回弹委托单查看
                path: '/reboundEntrust',
                name: 'reboundEntrust',
                component: () =>
                    import('../views/reboundStrengthManage/reboundEntrust/index.vue')
            },
            { // 回弹委托单编辑
                path: '/reboundEntrustText',
                name: 'reboundEntrustText',
                component: () =>
                    import('../views/reboundStrengthManage/reboundEntrustText/index.vue')
            },

            { // 回弹检测任务--查看
                path: '/reboundDetectionTask',
                name: 'reboundDetectionTask',
                component: () =>
                    import('../views/reboundStrengthManage/reboundDetectionTask/index.vue')
            },
            { // 回弹检测任务--编辑
                path: '/reboundDetectionTaskText',
                name: 'reboundDetectionTaskText',
                component: () =>
                    import('../views/reboundStrengthManage/reboundDetectionTaskText/index.vue')
            },
            { // 回弹检测数据--查看
                path: '/reboundDetectionData',
                name: 'reboundDetectionData',
                component: () =>
                    import('../views/reboundStrengthManage/reboundDetectionData/index.vue')
            },
            { // 回弹检测数据--编辑
                path: '/reboundDetectionDataText',
                name: 'reboundDetectionDataText',
                component: () =>
                    import('../views/reboundStrengthManage/reboundDetectionDataText/index.vue')
            },
            { // 回弹记录审批--查看
                path: '/reboundRecordApproval',
                name: 'reboundRecordApproval',
                component: () =>
                    import('../views/reboundStrengthManage/reboundRecordApproval/index.vue')
            },
            { // 回弹记录审批--编辑
                path: '/reboundRecordApprovalText',
                name: 'reboundRecordApprovalText',
                component: () =>
                    import('../views/reboundStrengthManage/reboundRecordApprovalText/index.vue')
            },
            { // 不合格数据管理--查看
                path: '/reboundUnqualifiedData',
                name: 'reboundUnqualifiedData',
                component: () =>
                    import('../views/reboundStrengthManage/reboundUnqualifiedData/index.vue')
            },

            // 回弹强度检测



            // 钢保厚度检测
            { // 钢保厚度检测--检测判定依据--查看
                path: '/rebarDetectionCriteria',
                name: 'rebarDetectionCriteria',
                component: () =>
                    import('../views/rebarThicknessManage/rebarDataDictionary/rebarDetectionCriteria/index.vue')
            },
            { // 钢保厚度检测--检测判定依据--编辑
                path: '/rebarDetectionCriteriaText',
                name: 'rebarDetectionCriteriaText',
                component: () =>
                    import('../views/rebarThicknessManage/rebarDataDictionary/rebarDetectionCriteriaText/index.vue')
            },
            { // 钢保厚度检测--回弹检测设备--查看
                path: '/rebarDetectionEquipment',
                name: 'rebarDetectionEquipment',
                component: () =>
                    import('../views/rebarThicknessManage/rebarDataDictionary/rebarDetectionEquipment/index.vue')
            },
            { // 钢保厚度检测--回弹检测设备--编辑
                path: '/rebarDetectionEquipmentText',
                name: 'rebarDetectionEquipmentText',
                component: () =>
                    import('../views/rebarThicknessManage/rebarDataDictionary/rebarDetectionEquipmentText/index.vue')
            },

            { // 钢保委托单查看
                path: '/rebarEntrust',
                name: 'rebarEntrust',
                component: () =>
                    import('../views/rebarThicknessManage/rebarEntrust/index.vue')
            },
            { // 回弹委托单编辑
                path: '/rebarEntrustText',
                name: 'rebarEntrustText',
                component: () =>
                    import('../views/rebarThicknessManage/rebarEntrustText/index.vue')
            },

            { // 钢保检测任务--查看
                path: '/rebarDetectionTask',
                name: 'rebarDetectionTask',
                component: () =>
                    import('../views/rebarThicknessManage/rebarDetectionTask/index.vue')
            },
            { // 钢保检测任务--编辑
                path: '/rebarDetectionTaskText',
                name: 'rebarDetectionTaskText',
                component: () =>
                    import('../views/rebarThicknessManage/rebarDetectionTaskText/index.vue')
            },
            { // 钢保检测数据--查看
                path: '/rebarDetectionData',
                name: 'rebarDetectionData',
                component: () =>
                    import('../views/rebarThicknessManage/rebarDetectionData/index.vue')
            },
            { // 钢保检测数据--编辑
                path: '/rebarDetectionDataText',
                name: 'rebarDetectionDataText',
                component: () =>
                    import('../views/rebarThicknessManage/rebarDetectionDataText/index.vue')
            },
            { // 厚度记录审批--查看
                path: '/rebarRecordApproval',
                name: 'rebarRecordApproval',
                component: () =>
                    import('../views/rebarThicknessManage/rebarRecordApproval/index.vue')
            },
            { // 厚度记录审批--编辑
                path: '/rebarRecordApprovalText',
                name: 'rebarRecordApprovalText',
                component: () =>
                    import('../views/rebarThicknessManage/rebarRecordApprovalText/index.vue')
            },
            { // 不合格数据管理
                path: '/rebarUnqualifiedData',
                name: 'rebarUnqualifiedData',
                component: () =>
                    import('../views/rebarThicknessManage/rebarUnqualifiedData/index.vue')
            },

            // 钢保厚度检测



            // 软基
            { // 软基施工监管--成桩数据管理
                path: '/pileDataManage',
                name: 'pileDataManage',
                component: () =>
                    import('../views/softFoundationManage/pileDataManage/index.vue')
            },
            { // 软基施工监管--软基设备参数信息
                path: '/overLimitMonitor',
                name: 'overLimitMonitor',
                component: () =>
                    import('../views/softFoundationManage/overLimitMonitor/index.vue')
            },
            { // 软基施工监管--软基施工设置--equipmentParameterInformation
                path: '/equipmentParameterInformation',
                name: 'equipmentParameterInformation',
                component: () =>
                    import('../views/softFoundationManage/softFoundationSet/equipmentParameterInformation/index.vue')
            },
            { // 软基施工监管--软基施工设置--预警短信模板管理
                path: '/softWarningInformation',
                name: 'softWarningInformation',
                component: () =>
                    import('../views/softFoundationManage/softFoundationSet/softWarningInformation/index.vue')
            },
            { // 软基施工监管--软基施工设置--预警通知人员对象
                path: '/softwarningObject',
                name: 'softwarningObject',
                component: () =>
                    import('../views/softFoundationManage/softFoundationSet/softwarningObject/index.vue')
            },
            // 软基
            // 环境监测

            { // 环境监测--监测记录
                path: '/testingRecord',
                name: 'testingRecord',
                component: () =>
                    import('../views/environmentalMonitorManage/testingRecord/index.vue')
            },
            { // 环境监测--设备管理
                path: '/equipmentEnvironment',
                name: 'equipmentEnvironment',
                component: () =>
                    import('../views/environmentalMonitorManage/equipmentEnvironment/index.vue')
            },

            // 环境监测

            { // 安全监测--龙门吊监测
                path: '/gantryCrane',
                name: 'gantryCrane',
                component: () =>
                    import('../views/safetyMonitorManage/gantryCrane/index.vue')
            },
            { // 安全监测--架桥机监测
                path: '/launchGantry',
                name: 'launchGantry',
                component: () =>
                    import('../views/safetyMonitorManage/launchGantry/index.vue')
            },
            { // 安全监测--塔吊监测
                path: '/towerCrane',
                name: 'towerCrane',
                component: () =>
                    import('../views/safetyMonitorManage/towerCrane/index.vue')
            },
            { // 安全监测--挂篮监测
                path: '/hangingBasket',
                name: 'hangingBasket',
                component: () =>
                    import('../views/safetyMonitorManage/hangingBasket/index.vue')
            },
            { // 安全监测--系统设置--设备管理
                path: '/equipmentSafey',
                name: 'equipmentSafey',
                component: () =>
                    import('../views/safetyMonitorManage/settingSafeyManage/equipmentSafey/index.vue')
            },
            { // 安全监测--系统设置--预警设置（龙门吊）
                path: '/warnSetSafey',
                name: 'warnSetSafey',
                component: () =>
                    import('../views/safetyMonitorManage/settingSafeyManage/warnSetSafey/index.vue')
            },
            // 安全监测




            //系统管理 组织机构
            {
                path: '/mechanism',
                name: 'mechanism',
                component: () =>
                    import('../views/SysManage/BaseManage/mechanism.vue')
            },
            {
                path: '/department',
                name: 'department',
                component: () =>
                    import('../views/SysManage/BaseManage/department.vue')
            },
            {
                path: '/postManagement',
                name: 'postManagement',
                component: () =>
                    import('../views/SysManage/BaseManage/postManagement.vue')
            },
            {
                path: '/roleManagement',
                name: 'roleManagement',
                component: () =>
                    import('../views/SysManage/BaseManage/roleManagement.vue')
            }, {
                path: '/user',
                name: 'user',
                component: () =>
                    import('../views/SysManage/BaseManage/user.vue')
            },

            // 数据字典主页面
            {
                path: '/dictionaryPage',
                name: 'DictionaryPage',
                component: () =>
                    import('../views/SysManage/dictionaryPage.vue')
            },
            // 系统功能
            {
                path: '/systemData',
                name: 'SystemData',
                component: () =>
                    import('../views/SysManage/systemData.vue')
            },


        ]
    }
]

const router = new VueRouter({
    // mode: 'history',
    // base: process.env.BASE_URL,
    routes
})


// 导航守卫
// 使用 router.beforeEach 注册一个全局前置守卫，判断用户是否登陆
router.beforeEach((to, from, next) => {
    //如果去往登录页则放行 
    if (to.path === '/') {
        next();
    } else if (to.path === '/loginfree') {
        next();
    } else if (to.path === '/loginHttps') {
        next();
    } else if (to.path === '/detailedClose') {
        next();
    } else {
        // console.log(5555, localStorage.getItem('yjSmart-token'));
        // 从本地存储里获取token
        let token = window.sessionStorage.getItem('yjSmart-token');
        // 判断token是否为空如果为空则跳转到登录页 如果有则放行
        if (token === null || token === '') {
            next({
                path: '/'
            });
        } else {
            next();
        }



        let userInfo = sessionStorage.getItem('yjSmart-userInfo')
        if (userInfo === null || userInfo === '') {
            next({
                path: '/'
            });
        } else {
            next();
        }
    }



});

export default router